﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppDemo"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:LayoutRulesTestApp="using:LayoutRulesTestApp"
    xmlns:Views="using:AppDemo.Views"
    x:Class="AppDemo.MainPage"
    mc:Ignorable="d" Width="Auto" d:DesignHeight="765">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <local:Shell Width="Auto" Grid.RowSpan="3"/>
        <Grid Grid.Row="1" Background="{StaticResource TechdaysPurpleBrush}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="textBlock" HorizontalAlignment="Right" TextWrapping="Wrap" Text="{Binding Title}" VerticalAlignment="Center" FontSize="24" FontFamily="Segoe WP Light" Margin="24,0" Grid.ColumnSpan="2"/>
            <Grid Margin="24,10,24,12" MaxWidth="600"
				Background="{StaticResource TechdaysPurpleBrush}" Grid.ColumnSpan="2" Visibility="Collapsed">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Image Source="Assets/Assets_icoSpeakers.png"/>
                <Image Source="Assets/Assets_icoSessions.png" Grid.Column="1"/>
                <Image Source="Assets/Assets_icoInfos.png" Grid.Column="2"/>
                <Image Source="Assets/Assets_icoSearch.png" Grid.Column="3"/>
            </Grid>
            <Views:Menu x:Name="Menu" Grid.ColumnSpan="2" Margin="24,4"/>
        </Grid>
        <Grid x:Name="separator" Height="4" VerticalAlignment="Top" Grid.Row="2">
            <Grid.Background>
                <SolidColorBrush Color="{StaticResource LightGrey}"/>
            </Grid.Background>

        </Grid>
        <Views:Speakers x:Name="Speakers" Grid.Row="2" Height="Auto" Visibility="{Binding IsSpeaker, Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,4,0,0">
            <Views:Speakers.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition />
                </TransitionCollection>
            </Views:Speakers.Transitions>
        </Views:Speakers>
        <Views:Sessions x:Name="Sessions" Grid.Row="2" Height="Auto" Visibility="{Binding IsSessions, Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,4,0,0">
            <Views:Sessions.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition />
                </TransitionCollection>
            </Views:Sessions.Transitions>
        </Views:Sessions>
        <Views:Recherches x:Name="Recherche" Grid.Row="2" Height="Auto" Visibility="{Binding IsRecherche, Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,4,0,0">
            <Views:Recherches.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition />
                </TransitionCollection>
            </Views:Recherches.Transitions>
        </Views:Recherches>
        <Views:Infos x:Name="Infos" Grid.Row="2" Height="Auto" Visibility="{Binding IsInfos, Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0,4,0,0">
            <Views:Infos.Transitions>
                <TransitionCollection>
                    <ContentThemeTransition />
                </TransitionCollection>
            </Views:Infos.Transitions>
        </Views:Infos>
    </Grid>
</Page>
